package com.neusoft.SPNursingHome.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;

@TableName("admin")
public class Admin implements Serializable {
    @TableId(value = "ad_id", type = IdType.AUTO)
    private Integer adId;

    private String adAccount;

    private String adPassword;

    private String adName;

    private String phone;

    private String role;

    // 构造方法
    public Admin() {}

    public Admin(Integer adId, String adAccount, String adPassword, String adName, String phone, String role) {
        this.adId = adId;
        this.adAccount = adAccount;
        this.adPassword = adPassword;
        this.adName = adName;
        this.phone = phone;
        this.role = role;
    }

    // Getter 和 Setter 方法
    public Integer getAdId() {
        return adId;
    }

    public void setAdId(Integer adId) {
        this.adId = adId;
    }

    public String getAdAccount() {
        return adAccount;
    }

    public void setAdAccount(String adAccount) {
        this.adAccount = adAccount;
    }

    public String getAdPassword() {
        return adPassword;
    }

    public void setAdPassword(String adPassword) {
        this.adPassword = adPassword;
    }

    public String getAdName() {
        return adName;
    }

    public void setAdName(String adName) {
        this.adName = adName;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }

    // 可选：重写 toString() 方法
    @Override
    public String toString() {
        return "Admin{" +
                "adId=" + adId +
                ", adAccount='" + adAccount + '\'' +
                ", adName='" + adName + '\'' +
                ", phone='" + phone + '\'' +
                ", role='" + role + '\'' +
                '}';
    }
}